<div class='filter_form'>
<table cellspacing="0" class="root_table">
	<tbody>
		<tr>
			<th>
				<span>Tên sân</span>
		    </th>
	        <th>
				<span>Khung giờ</span>
	        </th>
			<th>
				<span>Giá thuê</span>
			</th>
            <th>
				<span>Giá thuê cuối tuần</span>
			</th>
            <th>
				<span>Giảm giá</span>
			</th>
			<th>
				<span>Thao tác</span>
			</th>
		</tr>
	<?php if (!empty($schedules))
			foreach ($schedules as $schedule) {
				echo "<tr>";
				echo "<td>".Doctrine_Core::getTable('DtGround')->find($schedule->ground_id)->name."</td>";
				echo "<td>".$schedule->schedule."</td>";
				echo "<td>".$schedule->cost."</td>";
				echo "<td>".$schedule->cost_weekend."</td>";
				echo "<td>".$schedule->promotion."%</td>";
				echo "<td style=\"text-align:center;\">".link_to('Sửa', '@schedule_edit?ground_id='.$schedule->ground_id.'&schedule_name='.$schedule->schedule)."</td>";
				echo "</tr>";
			}
	?>
	</tbody>
</table>
</div>